/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "借用物品",TableName = "Sys_Borrow",DetailTable =  new Type[] { typeof(Sys_BorrowPerson)},DetailTableCnName = "借用人员")]
    public partial class Sys_Borrow:BaseEntity
    {
        /// <summary>
       ///序号
       /// </summary>
       [Key]
       [Display(Name ="序号")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int BorrowId { get; set; }

       /// <summary>
       ///借用物品
       /// </summary>
       [Display(Name ="借用物品")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string Item { get; set; }

       /// <summary>
       ///借用时间
       /// </summary>
       [Display(Name ="借用时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? Time { get; set; }

       [Display(Name ="借用人员")]
       [ForeignKey("BorrowId")]
       public List<Sys_BorrowPerson> Sys_BorrowPerson { get; set; }

    }
}